package com.yusys.pattern.regular.LODemeter.init.update;

import com.yusys.pattern.regular.LODemeter.init.Girl;

import java.util.ArrayList;
import java.util.List;

/**
 * 把teacher中对List<Girl>的初始化 移到 场景类中
 */
public class Client {
    public static void main(String[] args) {
        List<Girl> girlList = new ArrayList<Girl>();

        for (int i = 0; i < 20 ; i++) {
            girlList.add(new Girl());
        }

        Teacher teacher = new Teacher();
        teacher.command(new GroupLeader(girlList));
    }
}
